<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/12/14
 * Time: 5:21 PM
 */

namespace exception;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}


class ActionNotFoundException extends IException
{
  /**
   * Message part
   */
  const MESSAGE = "Action mapped to path \"__path__\" not found.";

  /**
   * @param string $actionName
   */
  public function __construct($actionName)
  {
    parent::__construct(IException::replaceMessage("__path__", $actionName, self::MESSAGE));
  }

}